package ntust.csie.calendrar;

import java.sql.Date;

import android.widget.LinearLayout;


public class day{
	int year,month,date,jobN=0;
	job jobList[]=new job[6];
	day(int y,int m,int d){
		this.year=y;
		this.month=m;
		this.date=d;
	}
	public boolean newJob(int STH,int STM,int ETH,int ETM,String ev,String c,int mode){
		if(jobN<5){
			jobList[jobN]=new job(STH,STM, ETH,ETM, ev, c, mode);
			jobN++;
			return true;
		}
		return false;
	}
	public void editJob(int STH,int STM,int ETH,int ETM,String ev,String c,int mode,int whichJob){
		jobList[whichJob]=new job(STH,STM, ETH,ETM, ev, c, mode);
		
	}
	public void delJob(int n){
		for(int i=n;i<jobN;i++)
			jobList[i]=jobList[i+1];
		jobN--;
	}
	public job getJob(int n){
		return jobList[n];
	}
	public int getJobNumber(){
		return jobN;
	}
}